<template>
    <lay-menu-item v-if="item.type == 2" :id="item.id"> {{ item.name }}</lay-menu-item>
    <lay-sub-menu v-if="item.type == 1" :id="item.id">
        <template #title>{{ item.name }}</template>
        <LeftMenu :item="child" v-for="child in item.children" :key="child.id"></LeftMenu>
    </lay-sub-menu>
</template >
<script setup >
const props = defineProps({
    item: Object
})
</script>
